package com.xixi.canal.client;

import com.xixi.canal.client.support.Dml;
import com.xixi.canal.client.support.SPI;
import com.xixi.canal.client.support.WriterConfig;

import java.util.List;
import java.util.Properties;

@SPI("logger")
public interface DataWriter {

    void init(String destination, WriterConfig writerConfig, Properties envProperties);

    void destroy();

    void write(List<Dml> dmlList);
}
